package com.codeoss.framework.view.parser;

import org.springframework.stereotype.Service;

import com.codeoss.framework.view.component.Component;
import com.codeoss.framework.view.component.report.UReport2;
import com.fasterxml.jackson.databind.node.ObjectNode;

@Service("ureport2Parser")
public class UReport2Parser extends AbstractComponentParser {
	 protected void setAttributes(IParseContext parseContext, ObjectNode objectNode,Component component) {
		 super.setAttributes(parseContext, objectNode, component);
		 UReport2 uReport2=(UReport2)component;
		 if(objectNode.get("reportCode")!=null) {
			 uReport2.setReportCode(objectNode.get("reportCode").asText());
		 }
	 }
	 
	@Override
	protected Component createComponent(IParseContext parseContext, ObjectNode objectNode) {
		// TODO Auto-generated method stub
		return new UReport2();
	}

}
